package main

import (
	"exam/api"
	"exam/config"
	"exam/inits"
	"github.com/gin-gonic/gin"
)

func main() {
	config.Init()
	inits.MysqlInit()
	inits.RedisInit()
	router := gin.Default()
	api.Exam(router)
	router.Run(":8081") // 监听并在 0.0.0.0:8080 上启动服务
}
